(function() {
	App.set("$Event.user.main.user_login_out", function() {
		coAjax.get(appConfig.user.login_out_url, function() {
			App.set("loginer", null);
			if (_isWX) {
				globalSet("WEIXIN_OPENID:" + busInfo._id, "");
			};
			Path.jump("/main.html");
			alert("warn", "您已退出登陆！！！");
		});
	});
	App.set("$Event.user.main.jumpToLogin", function() {
		myConfirm("您还未登陆，请先登陆", function() {
			Path.jump("/sign_in.html?cb_url=" + encodeURIComponent(App.get("$Cache.top.cb_url")));
		});
	});
	App.set("$Event.user.main.show_location_store_share", function() {
		App.model.toggle("$Cache.user.main.show_location_store_share");
	});
	Path.on("/__basename__.html", function(_current_location) {});
}());